package business.playgameForm_Evt;

import javax.swing.JDialog;

import presentation.menuForm_UI.MenuForm_UI;
import presentation.playgameForm_UI.GameMode_UI;

public class Playgame_Evt {

        private JDialog dlg;

        public Playgame_Evt(JDialog dlg) {
                this.dlg = dlg;
        }

        public void btSinglePlayer_Evt() {
                dlg.setVisible(false);
                new GameMode_UI(GameMode_UI.SINGLE_MODE).setVisible(true);
        }

        public void btPractice_Evt() {
                dlg.setVisible(false);
                new GameMode_UI(GameMode_UI.PRACTICE_MODE).setVisible(true);
        }

        public void btPlaySavedGame_Evt() {
                dlg.setVisible(false);
                new GameMode_UI(GameMode_UI.SAVE_MODE).setVisible(true);
        }

        public void showMainMenu() {
                dlg.setVisible(false);
                MenuForm_UI.frame.setVisible(true);
        }
}
